<?php
include ("conn.php");
$id = $_POST['id'];
//下面是读取数据
$sql = "SELECT * FROM pageList WHERE id = ".$id;
$result = $conn->query($sql);
$arr = array();
if ($result->num_rows > 0) {
    // 输出数据
    $row = $result->fetch_assoc();
    $arr = array($row["pointNum"],explode("#################",$row["HTMLs"]),explode("#################",$row["titles"]),$row['likeNum'],json_decode($row['teachers']),$row['auid'],$row['title'],$row['class']);
}
echo json_encode($arr);
?>